package com.zcc.mapper;

import com.zcc.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

//注解表示了这个Mapper被注册到SpringBoot中了
//也可以在启动类上注解MapperScan("com.zcc.mapper")
@Mapper
//@Repository用于注解表明作用于DAO层
@Repository
public interface UserMapper {
    List<User> queryUserList();

    User queryUserById(int id);

    int addUser(User user);

    int updateUser(User user);

    int deleteUser(int id);
}
